unit izin;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Mask, ComCtrls, StdCtrls;

type
  TForm5 = class(TForm)
    Label1: TLabel;
    Edit2: TEdit;
    Edit1: TDateTimePicker;
    Label2: TLabel;
    Label3: TLabel;
    Edit3: TMaskEdit;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form5: TForm5;

implementation

uses perteknik;

{$R *.DFM}

procedure TForm5.Button1Click(Sender: TObject);
begin
 dmteknik.spizin.Parameters.ParamByName('@perno').value:=edit2.text;
 dmteknik.spizin.Parameters.ParamByName('@tarih').value:=edit1.date;
 dmteknik.spizin.Parameters.ParamByName('@saat').value:=edit3.text;
 dmteknik.spizin.ExecProc;



 if dmteknik.spizin.Parameters.ParamByName('RETURN_VALUE').value=2 then
 showmessage('izin verildi');

end;

end.
